Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpk: explicitly add Arg validation to plugins #18723

Merged
merged 1 commit into from
May 30, 2024

Conversation

r-vasquez
Copy link
Contributor

@r-vasquez r-vasquez commented May 30, 2024

In #18650 we added Arg validations for every
command and an automatic "walk" through the command space to add cobra.NoArgs.

Plugins were not taken into account, this commit
explicitly set the cobra.MinimumArg(0) to avoid
adding "NoArgs" on execution.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

  • none

In redpanda-data#18650 we added Arg validations for every
comman and an automatic "walk" through the command
space to add cobra.NoArgs.

Plugins were not taken into account, this commit
explicitly set the cobra.MinimumArg(0) to avoid
adding "NoArgs" on execution.
@vbotbuildovich
Copy link
Collaborator

new failures in https://buildkite.com/redpanda/redpanda/builds/49694#018fca7f-c04a-4fb3-be31-3c3d06f4a741:

"rptest.tests.delete_records_test.DeleteRecordsTest.test_delete_records_segment_deletion.cloud_storage_enabled=True.truncate_point=at_segment_boundary"

@r-vasquez
Copy link
Contributor Author

@twmb twmb merged commit 2b3ee2e into redpanda-data:dev May 30, 2024
21 of 25 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v24.1.x

@twmb twmb deleted the patch-no-arg-plugin branch May 30, 2024 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants